//
//  HomeModel.swift
//  edu
//
//  Created by karlzhou on 15/11/3.
//  Copyright © 2015年 karlzhou. All rights reserved.
//

import ObjectMapper
class HomePage: Mappable{
    
    var id:Int!
    
    var gmtCreate:Double!
    
    var gmtModified:Double!
    
    var type:Int!
    
    var contentType:Int!
    
    var contentId:String!
    
    var title:String!
    
    var picUrl:String!
    
    var top:String!
    
    var subtitle:String!
    
    var description:String!
    
    required init?(_ map: Map){
        
    }
    func mapping(map: Map){
        
        id <- map["id"]
        gmtCreate <- map["gmtCreate"]
        gmtModified <- map["gmtModified"]
        type <- map["type"]
        contentType <- map["contentType"]
        contentId <- map["contentId"]
        title <- map["title"]
        picUrl <- map["picUrl"]
        top <- map["top"]
        subtitle <- map["subtitle"]
        description<-map["description"]
        
        
    }
}

class HomeModel : Mappable{
    var name : String?
    var type : Int!
    var vos : [HomePage] = []
    
    required init?(_ map: Map){
        
    }
    func mapping(map: Map){
        name <- map["name"]
        type <- map["type"]
        vos <- map["vos"]
    }
    
}
